provider Organizations PUT
/api/0/organizations/{organization_id_or_slug}/members/{member_id}/ @utdk/sentry
/api/0/organizations/{organization_id_or_slug}/members/{member_id}/ Update an Organization Member's Roles
Update a member's [organization-level](https://docs.sentry.io/organization/membership/#organization-level-roles) and [team-level](https://docs.sentry.io/organization/membership/#team-level-roles) roles.
Note that for changing organization-roles, this endpoint is restricted to
[user auth tokens](https://docs.sentry.io/account/auth-tokens/#user-auth-tokens).
Additionally, both the original and desired organization role must have
the same or lower permissions than the role of the organization user making the request
For example, an organization Manager may change someone's role from
Member to Manager, but not to Owner.
- organization_id_or_slug path required
- The ID or slug of the organization the resource belongs to.
- string
- member_id path required
- The ID of the member to update.
- string
Try it
Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import sentry from '@utdk/sentry';
await sentry.updateAnOrganizationMemberSRoles()